package com.ws.shop.entity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Order extends BaseEntity{
	private long id;
	private int uid;
	private String ordersn;
	private int aid;
	private String goodsname;
	private int num;
	private float orderprice;
	private String distributionway;
	private float freight;
	private String name;
	private String recipient;
	private String address;
	private String postalcode;
	private String tel;
	private String remark;
	private int type;
	private int isrebeat;
	private Date addtime;
	private int state;
	private String atitle;
	private double ggoodsfreight;
	private String enumber;
	private long sid;
	private String sn;
	private Date aordertime;
	private double realprice;
	private long beatnum ;
	private long bout;
	private double premium;
	private double goodsprice;
	private String thumbnail;
	
	public String getThumbnail() {
		return thumbnail;
	}
	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}
	public double getGoodsprice() {
		return goodsprice;
	}
	public void setGoodsprice(double goodsprice) {
		this.goodsprice = goodsprice;
	}
	public long getBeatnum() {
		return beatnum;
	}
	public void setBeatnum(long beatnum) {
		this.beatnum = beatnum;
	}
	public long getBout() {
		return bout;
	}
	public void setBout(long bout) {
		this.bout = bout;
	}
	public double getPremium() {
		return premium;
	}
	public void setPremium(double premium) {
		this.premium = premium;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public Date getAordertime() {
		return aordertime;
	}
	public void setAordertime(Date aordertime) {
		this.aordertime = aordertime;
	}
	public double getRealprice() {
		return realprice;
	}
	public void setRealprice(double realprice) {
		this.realprice = realprice;
	}
	public String getAtitle() {
		return atitle;
	}
	public void setAtitle(String atitle) {
		this.atitle = atitle;
	}
	public double getGgoodsfreight() {
		return ggoodsfreight;
	}
	public void setGgoodsfreight(double ggoodsfreight) {
		this.ggoodsfreight = ggoodsfreight;
	}
	public String getEnumber() {
		return enumber;
	}
	public void setEnumber(String enumber) {
		this.enumber = enumber;
	}
	public long getSid() {
		return sid;
	}
	public void setSid(long sid) {
		this.sid = sid;
	}
	
	public final static Map<String,String> TYPE_DESCS = new HashMap<String,String>();
	public final static Map<String,String> STATE_DESCS = new HashMap<String,String>();
	
	static{
		TYPE_DESCS.put("0","保价购买");
		TYPE_DESCS.put("1","竞拍成功");
		TYPE_DESCS.put("2","积分兑换");
		
		STATE_DESCS.put("0", "未付款");
		STATE_DESCS.put("1", "已付款");
		STATE_DESCS.put("2", "已发货");
		STATE_DESCS.put("3", "已成交");
		STATE_DESCS.put("4", "已晒图");
		STATE_DESCS.put("5", "已失效");
	}
	
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public String getOrdersn() {
		return ordersn;
	}
	public void setOrdersn(String ordersn) {
		this.ordersn = ordersn;
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
	public String getGoodsname() {
		return goodsname;
	}
	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public float getOrderprice() {
		return orderprice;
	}
	public void setOrderprice(float orderprice) {
		this.orderprice = orderprice;
	}
	public String getDistributionway() {
		return distributionway;
	}
	public void setDistributionway(String distributionway) {
		this.distributionway = distributionway;
	}
	public float getFreight() {
		return freight;
	}
	public void setFreight(float freight) {
		this.freight = freight;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRecipient() {
		return recipient;
	}
	public void setRecipient(String recipient) {
		this.recipient = recipient;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPostalcode() {
		return postalcode;
	}
	public void setPostalcode(String postalcode) {
		this.postalcode = postalcode;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getIsrebeat() {
		return isrebeat;
	}
	public void setIsrebeat(int isrebeat) {
		this.isrebeat = isrebeat;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
}
